package hys.wwsa.modules.gene.service.impl;

import hys.wwsa.modules.gene.dao.GenesDao;
import hys.wwsa.modules.gene.entity.GenesEntity;
import hys.wwsa.modules.gene.service.GenesService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import hys.wwsa.common.utils.PageUtils;
import hys.wwsa.common.utils.Query;


@Service("genesService")
public class GenesServiceImpl extends ServiceImpl<GenesDao, GenesEntity> implements GenesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GenesEntity> page = this.page(
                new Query<GenesEntity>().getPage(params),
                new QueryWrapper<GenesEntity>()
        );

        return new PageUtils(page);
    }

}